﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <div ng-app="" ng-init="firstName='John';quantity=1;price=5">
        <p>在输入框中尝试输入：</p>
        <p>姓名：<input type="text" ng-model="firstName"></p>
        <p>你输入的为： {{ firstName }}</p>
        <p></p>
        <h2>价格计算器</h2>
        数量： <input type="number" ng-model="quantity">
        价格： <input type="number" ng-model="price">
        <p><b>总价：</b> {{ quantity * price }}</p>
        <p></p>

    </div>


    <script type="text/javascript" src="Scripts/angular.js"></script>
</body>
</html>